package crud.client.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import crud.client.factory.form.multiple.value.LibelleComboBoxFactory;
import crud.client.factory.form.multiple.value.MultipleValueFormItemFactory;

@Retention(value=RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface MultipleValue 
{
	public Class<? extends MultipleValueFormItemFactory> factory() default LibelleComboBoxFactory.class;
	
	/**
	 * Mettre les valeurs sous la forme {key=value}
	 * ex: {"1=MR", "2=MME", "3=MLLE"}
	 * 
	 * @return les valeurs de la liste
	 */
	public String[] values() default {};
}
